﻿<?xml version="1.0" encoding="utf-8" ?>
<Rules FriendlyName="InjectionCop">
  <Rule TypeName="TypeParser" Category="InjectionCop.Analysis" CheckId="IC0001">
    <Name>Check for Fragment Violations</Name>
    <Description>See injectincop.codeplex.com for quick introduction</Description>
    <Url>injectioncop.codeplex.com</Url>
    <Resolution>Expected fragment of type '{0}' but got '{1}'.</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
  <Rule TypeName="OverridingMethodFragmentUsageRule" Category="InjectionCop.Usage" CheckId="IC0002">
    <Name>Check for Fragment Usage</Name>
    <Description>See injectincop.codeplex.com for quick introduction</Description>
    <Url>injectioncop.codeplex.com</Url>
    <Resolution>Expected fragment of type '{0}' from overriden method, but got '{1}'.</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
  <Rule TypeName="InterfaceImplementingMethodFragmentUsageRule" Category="InjectionCop.Usage" CheckId="IC0003">
    <Name>Check for Fragment Usage</Name>
    <Description>See injectincop.codeplex.com for quick introduction</Description>
    <Url>injectioncop.codeplex.com</Url>
    <Resolution>Expected fragment of type '{0}' from implemented interface method, but got '{1}'.</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
  <Rule TypeName="MulitpleFragmentUsageRule" Category="InjectionCop.Usage" CheckId="IC0004">
    <Name>Check for multiple Fragment Usage</Name>
    <Description>See injectincop.codeplex.com for quick introduction</Description>
    <Url>injectioncop.codeplex.com</Url>
    <Resolution>Parameter '{0}' has multiple fragment types assigned.</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
</Rules>
